<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
            //小明 今年18岁 性别男 有男朋友 男朋友会说话 说什么自己定
            function Person(name,age,sex,bf,shuo,sh) {
                this.name=name;
                this.age=age;
                this.sex=sex;
                this.shuo=shuo;
                this.sh=sh;
                this.bf=bf;
                this.say=function () {
                    alert(this.name+"今年"+this.age+"岁,性别"+this.sex+","+this.bf+","+this.shuo+"他说："+this.sh)
                }
            }
            var person=new Person("小明",18,"男","有男朋友","男朋友会说话","我不喜欢男的")
            person.say()
		</script>
	</body>
</html>
